package com.ferris.redbook.dto.response;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentResponse {
    private Long id;
    private String content;
    private Integer likeCount;
    private Integer repliesCount;
    private Integer level;
    private LocalDateTime createdAt;
    private UserResponse user; // 需要关联users表
    private List<CommentResponse> replies; // 需要递归查询
    private UserResponse replyTo; // 需要关联users表
}